﻿<%@ Page Title="Caso de Uso" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CasoUso.aspx.cs" Inherits="GerTestes.Especificao.CasoUso" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="pnlCasoRequisito" runat="server">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h2>
                            <br />
                            <i class="fa fa-align-justify"></i><span class="break">
                                <asp:Label ID="lblConsulta" runat="server" Text="Consulta"></asp:Label></h2>
                        <div class="panel-actions">
                            <a href="table.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="panel-body">
                        <div>
                            <table class="style1">
                                <tr>
                                    <td>
                                        <asp:Label ID="Label1" runat="server" Text="Projeto"></asp:Label>
                                        <br />
                                        <asp:DropDownList ID="ddlProjeto" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProjeto_SelectedIndexChanged"
                                            Width="450px">
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:Label ID="Label2" runat="server" Text="Módulo"></asp:Label>
                                        <br />
                                        <asp:DropDownList ID="ddlModulo" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlModulo_SelectedIndexChanged"
                                            Width="280px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <span class="break">
                                            <asp:Label ID="Label3" runat="server" Text="Sub-Módulo"></asp:Label>
                                            <br />
                                            <asp:DropDownList ID="ddlSubModulo" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSubModulo_SelectedIndexChanged"
                                                Width="280px">
                                            </asp:DropDownList>
                                        </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <span class="break">
                                        <asp:Label ID="Label4" runat="server" Text="Caso Requisito"></asp:Label>
                                        <br />
                                        <asp:DropDownList ID="ddlCasoRequisito" runat="server" AutoPostBack="True" 
                                            Width="280px">
                                        </asp:DropDownList>
                                        </span>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <span class="break">
                                <asp:GridView ID="gvwCasosUso" runat="server" aria-describedby="DataTables_Table_0_info"
                                    AutoGenerateColumns="False" ClientIDMode="Static" CssClass="table table-bordered table-striped table-condensed"
                                    DataKeyNames="ID_CASO_USO" EmptyDataText="Registros não localizados..."
                                    GridLines="None" PageSize="100" role="grid" Width="100%" 
                                Visible="False">
                                    <Columns>
                                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/assets/img/selecionar.png"
                                            ShowSelectButton="True" />
                                        <asp:BoundField DataField="DESCRICAO" HeaderText="Caso Uso">
                                            <ItemStyle HorizontalAlign="Left" Width="98%" />
                                        </asp:BoundField>
                                    </Columns>
                                    <PagerStyle CssClass="pagination" Wrap="True" />
                                    <SelectedRowStyle CssClass="alert alert-info" Font-Bold="True" />
                                </asp:GridView>
                            </span>
                            <asp:Button ID="btnIncluir" runat="server" OnClick="btnIncluir_Click" Text="Incluir"
                                Visible="False" />
                            <br />
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </span>
    </asp:Panel>
</asp:Content>
